package com.bawei.xmppdemo;

import android.app.Application;

import com.baweigame.xmpplibrary.XmppManager;

import java.util.concurrent.Executors;

/**
 * @Author : yaotianxue
 * @Time : On 2023/7/5 10:07
 * @Description : App
 */
public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        XmppInt();


    }
    //启动优化：部分初始化工作放在线程池中,application的onCreate方法
    private void XmppInt() {
        Executors.newCachedThreadPool().execute(new Runnable() {
            @Override
            public void run() {
                XmppManager.getInstance();
            }
        });

    }
}
